##
# logger.py - Created by Timothy Morey on 6/10/2012
#
# This file provides a ctypes wrapper for libnvn items defined in logger.h.
#

import ctypes

from libnvn import nvn

# LogLevel enum values:
LogLevelMute  = 0
LogLevelDebug = 1
LogLevelInfo  = 2
LogLevelError = 4

InitLogger = nvn.InitLogger
InitLogger.argtypes = [ctypes.c_char_p, ctypes.c_int, ctypes.c_int, ctypes.c_int]

WriteMessage = nvn.WriteMessage
WriteMessage.argtypes = [ctypes.c_int, ctypes.c_char_p]